/*********************************************************************************
 *      Copyright:  (C) 2022 Li Yanting<liyanting2@163.com>
 *                  All rights reserved.
 *
 *       Filename:  get_time.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(07/2/2022)
 *         Author:  Li Yanting <liyanting2@163.com>
 *      ChangeLog:  1, Release initial version on "07/02/2022 17:18:58"
 *                 
 ********************************************************************************/
#ifndef _GET_TIME_H_
#define _GET_TIME_H_

#include <time.h>
#include <stdio.h>


/*********************************************************************************
 *      Function name:  gtime
 *        Description:  Get seconds since 1970
 *         @parameter:  t 
 *       Return value:  On error, -1 is returned. On success, time is returned.
 ********************************************************************************/
void gtime(long *time);


/*********************************************************************************
 *      Function name:  get_format_time
 *        Description:  get format time
 *         @parameter:  t 
 *       Return value:  On error, -1 is returned. On success, format time is returned.
 ********************************************************************************/
char * get_format_time(long t);

// int get_time(char *current_time);

#endif